package com.heima.media.dto;

import com.heima.common.dto.PageRequestDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class ChannelDto extends PageRequestDto {
    /**
     * 频道名称
     */
    @ApiModelProperty(value = "频道名称")
    private String name;

    public static void main(String[] args) {
        ChannelDto dto1 = new ChannelDto();
        dto1.setName("tom");
        dto1.setPage(1L);
        dto1.setSize(10);

        ChannelDto dto2 = new ChannelDto();
        dto2.setName("tom");
        dto2.setPage(2L);
        dto2.setSize(20);

        System.out.println("dto1 == dto2: " + dto1.equals(dto2));
    }
}
